package com.baizhi.cmfz.dao;

import com.baizhi.cmfz.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerDao {

    public List<Banner> selectByPageBanner(@Param("offset") Integer offset,@Param("limit")Integer limit);
    public  int selectTotalCountBanner();

    int insertBanner(Banner banner);

    int deleteBanner(Integer bannerId);
    int updateBanner(Banner banner);
    Banner selectOneBanner(Integer bannerId);

    int updateState(@Param("id") Integer id,@Param("state") Integer state);
}
